package com.wanmait.movie.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;
import lombok.experimental.Accessors;

/**
* Created by Mybatis Generator 2023/11/30
*/
@Data
@TableName(value = "user")
@Accessors(chain = true)
public class User implements Serializable {
    /**
     * 用户id
     */
     @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 登录名
     */
    @TableField(value = "username")
    private String username;

    /**
     * 登录密码
     */
    @TableField(value = "password")
    private String password;

    /**
     * 头像
     */
    @TableField(value = "avatar")
    private String avatar;

    /**
     * 登录手机号
     */
    @TableField(value = "phone")
    private String phone;

    /**
     * 兴趣爱好
     */
    @TableField(value = "hobby")
    private String hobby;

    /**
     * 生日
     */
    @TableField(value = "birthday")
    private Date birthday;

    /**
     * 注册时间
     */
    @TableField(value = "register_time")
    private Date registerTime;

    /**
     * 钱包余额
     */
    @TableField(value = "money")
    private Double money;

    /**
     * 性别
     */
    @TableField(value = "gender")
    private String gender;

    /**
     * vip状态
     */
    @TableField(value = "vip")
    private Integer vip;

    /**
     * 邮箱
     */
    @TableField(value = "email")
    private String email;

    /**
     * enable
     */
    @TableField(value = "enable")
    private Boolean enable;

    private static final long serialVersionUID = 1L;

    public static final String COL_USERNAME = "username";

    public static final String COL_PASSWORD = "password";

    public static final String COL_AVATAR = "avatar";

    public static final String COL_PHONE = "phone";

    public static final String COL_HOBBY = "hobby";

    public static final String COL_BIRTHDAY = "birthday";

    public static final String COL_REGISTER_TIME = "register_time";

    public static final String COL_MONEY = "money";

    public static final String COL_GENDER = "gender";

    public static final String COL_VIP = "vip";

    public static final String COL_EMAIL = "email";

    public static final String COL_ENABLE = "enable";
}